<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/main.css" />
    <script type="text/javascript" src="../script/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/mobile.js"></script>
    <script type="text/javascript" src="../script/public.js"></script>
    <script type="text/javascript" src="../script/app.js"></script>
    <title>充值明细</title>
</head>
<body>
<header>
    <div class="zhifu_cgs">
        <div>
            <img src="../image/jiant_rg.png" alt="" onclick="open_winrs('wode','wode.html');">
            <p>充值明细</p>
        </div>
    </div>
</header>
<div class="inx_list">
    <p id="total"><!-- 累计充值：  ￥1500.00 --></p>
    <ul id="quanbu">
       <!--  <li><span><em>2018-05-11</em><i>14:04</i></span><p>+￥250</p></li>
        <li><span><em>2018-05-11</em><i>14:04</i></span><p>+￥250</p></li>
        <li><span><em>2018-05-11</em><i>14:04</i></span><p>+￥250</p></li> -->
    </ul>
</div>

</body>
<script type="text/javascript">
    window['adaptive'].desinWidth = 750;
    window['adaptive'].baseFont = 28;
    window['adaptive'].maxWidth = 750;
    window['adaptive'].init();

    apiready = function () {
        $api.fixStatusBar($api.dom('.header'));
        api.addEventListener({
            name: 'keyback'
        }, function(ret, err){
            api.closeWidget();
        });

        //充值明细
        p = {uid:id,type:1};
        api.ajax({
            url:webSiteUrl+'/app/User/recharge',
            method:'post',
            data:{
                values:p
            }
        },function(ret,err){
            if (ret.code == 200) {
                   // alert(JSON.stringify(ret));
                   var all = ret.data.url;
                   html = "";
                   if (all != null) {


                        for (var i=0 ; i<all.length ; i++) {
                            html += '<li><span><em>'+all[i].days+' <i>'+all[i].hour+'</i></em><i>'+all[i].remark+'</i></span><p>-￥'+all[i].total_price+'</p></li>';
                        }
                    }
                    
                    
                        $('#quanbu').html(html);
                    

                    $('#total').html('累计消费:   ￥'+ret.data.total);
                    
            }else{
                alert(ret.msg);
            }
        });
        

    }
    
</script>
</html>

